import { Rate } from 'antd';
import React from 'react'

const Rater = React.createClass({
    getInitialState() {
        return {
            value: 3,
            count: null,
        };
    },
    handleChange(value) {
        this.setState({ value });
    },
    render() {
        const { value } = this.state;
        return (
            <span>
        <Rate onChange={this.handleChange} value={value} />
                {value && <span className="ant-rate-text">{value} 星</span>}
      </span>
        );
    },
});
export default Rater